package com.xinqi.modules.discuss.notice.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xinqi.common.mybatis.data.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 课程公告主表实体层
 *
 * @author: yyzhen
 * @date: 2023/03/21
 */
@Setter
@Getter
@TableName("co_course_notice")
public class CourseNoticeEntity extends BaseEntity {
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 详情内容
     */
    @TableField(value = "content")
    private String content;
    /**
     * 附件
     */
    @TableField(value = "fileurls")
    private String fileurls;
    /**
     * 视频j集合
     */
    @TableField(value = "videos")
    private String videos;
    /**
     * 图片集合
     */
    @TableField(value = "images")
    private String images;
    /**
     * 班级ID
     */
    @TableField(value = "class_id")
    private Long classId;
    /**
     * 是否同步发布到班级 0否 1是
     */
    @TableField(value = "synchro")
    private Integer synchro;
    /**
     * 同步的班级ID集合
     */
    @TableField(value = "class_ids")
    private String classIds;
    /**
     * 是否需要学生确认 0否 1是 (公告专用)
     */
    @TableField(value = "is_confirm")
    private Integer isConfirm;
    /**
     * 是否立即发布，0否  1是
     */
    @TableField(value = "now_release")
    private Integer nowRelease;
    /**
     * 定时发布，0不定时 1定时
     */
    @TableField(value = "timing")
    private Integer timing;
    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    private LocalDateTime releaseTime;
    /**
     * 截止时间(各种类型结束时间)
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;
    /**
     * 是否置顶 0否 1是
     */
    @TableField(value = "is_top")
    private Integer isTop;
    /**
     * 置顶时间
     */
    @TableField(value = "top_time")
    private LocalDateTime topTime;
    /**
     * 发布状态
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 额外字段
     */
    @TableField(value = "extra")
    private String extra;
}
